package vip.george.cartoon;


import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import vip.george.animal.Cat;
import vip.george.animal.Mouse;


//@Component
@ConditionalOnProperty(name ="{cartoon}")
@ConfigurationProperties(prefix = "cartoon")
public class CartoonProperties {



    private Cat cat;

    private Mouse mouse;


    /**
     * 场景
     */
    private String scene = "家里";

    public Cat getCat() {
        return cat;
    }

    public void setCat(Cat cat) {
        this.cat = cat;
    }

    public Mouse getMouse() {
        return mouse;
    }

    public void setMouse(Mouse mouse) {
        this.mouse = mouse;
    }

    public String getScene() {
        return scene;
    }

    public void setScene(String scene) {
        this.scene = scene;
    }
}
